package com.yikaiye.android.yikaiye.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 产品详情
 */
public class ProductDetailDataModel implements Parcelable {
    private String id;
    private String title;
    private String slogan;
    private String pcBanner;
    private String costPrice;
    private String minPrice;
    private String maxPrice;
    private ProductDesModel productDetail;
    private List<ProductServiceModel> serviceInfo;
//    private Object productInfoViewResps;

    protected ProductDetailDataModel(Parcel in) {
        id = in.readString();
        title = in.readString();
        slogan = in.readString();
        pcBanner = in.readString();
        costPrice = in.readString();
    }

    public static final Creator<ProductDetailDataModel> CREATOR = new Creator<ProductDetailDataModel>() {
        @Override
        public ProductDetailDataModel createFromParcel(Parcel in) {
            return new ProductDetailDataModel(in);
        }

        @Override
        public ProductDetailDataModel[] newArray(int size) {
            return new ProductDetailDataModel[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getPcBanner() {
        return pcBanner;
    }

    public void setPcBanner(String pcBanner) {
        this.pcBanner = pcBanner;
    }

    public String getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(String costPrice) {
        this.costPrice = costPrice;
    }

    public String getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(String minPrice) {
        this.minPrice = minPrice;
    }

    public String getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(String maxPrice) {
        this.maxPrice = maxPrice;
    }

    public ProductDesModel getProductDetail() {
        return productDetail;
    }

    public void setProductDetail(ProductDesModel productDetail) {
        this.productDetail = productDetail;
    }

    public List<ProductServiceModel> getServiceInfo() {
        return serviceInfo;
    }

    public void setServiceInfo(List<ProductServiceModel> serviceInfo) {
        this.serviceInfo = serviceInfo;
    }

//    public Object getProductInfoViewResps() {
//        return productInfoViewResps;
//    }
//
//    public void setProductInfoViewResps(Object productInfoViewResps) {
//        this.productInfoViewResps = productInfoViewResps;
//    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(title);
        parcel.writeString(slogan);
        parcel.writeString(pcBanner);
        parcel.writeString(costPrice);
    }
}
